name = "He"
age = 25
print("He is {} years old.".format(age)) # 输出：He is 25 years old.

# 方法2：使用 f-string (格式化字符串字面值)
name2 = "Alice"
print(f"I am {name} and I am {name2}.") # 输出：I am He and I am Alice.